package cn.theten52.demo.patterns.design.creation.builder;

/**
 * 汽车构建者
 *
 * @author wangjin
 * @date 2020/12/29
 */
public class CarBuilder extends VehicleBuilder {
    @Override
    public void addWheels() {
        vehicle.addWheels(FRONT);
        vehicle.addWheels(FRONT);
        vehicle.addWheels(BACK);
        vehicle.addWheels(BACK);
    }

    @Override
    public void addLights() {
        vehicle.addLights("red");
        vehicle.addLights("blue");
        vehicle.addLights("black");
        vehicle.addLights("yellow");
    }
}
